/*
 * inotify-sync - a simple file synchronizer and file system watcher
 * Copyright (C) 2010-2011, inotify-sync developers and inotify-sync contributors
 * Copyright (C) 2010-2011, Cohesion Network Security Studio
 *
 * inotify-sync is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * inotify-sync is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with inotify-sync; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

/*
 * FILE:		Config.cpp
 * USAGE:		---
 * DESCRIPTION:		---
 * OPTIONS:		---
 * REQUIREMENTS:	---
 * BUGS:		---
 * NOTES:		---
 * AUTHOR:		LI Yiwei (mail:leeyiw@gmail.com)
 * COMPANY:		---
 * VERSION:		1.0
 * CREATED:		Thu Oct 20 19:44:38 CST 2011
 * REVISION:		---
 */

#include "Config.h"

Config::Config()
{}

Config::~Config()
{}

void
Config::get_opt(std::vector<opt> opt_vec)
{
	for(size_t i=0;i<opt_vec.size();i++)
	{
		if(opt_vec[i].opt_name=="profile_path")
		{
			set_profile_path(opt_vec[i].opt_value);
			continue;
		}
	}
}

std::string
Config::get_profile_path()const
{
	return profile_path;
}

void
Config::set_profile_path(std::string profile_path)
{
	this->profile_path=profile_path;
}
